<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>折腾树莓派</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keywords" content="">
    <meta name="generator" content="Raveh's">

    <!-- Le styles -->
    <link href="../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../css/asciidoctor.css" rel="stylesheet">
    <link href="../../css/base.css" rel="stylesheet">
    <link href="../../css/prettify.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="../../js/html5shiv.min.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">-->
    <link rel="shortcut icon" href="../../favicon.ico">
  </head>
  <body onload="prettyPrint()">
    <div id="wrap">
   
	
		<!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand">Raveh's</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="../../index.html">Home</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Pages <b class="caret"></b></a>
              <ul class="dropdown-menu">
		<li class="dropdown-header">Nav Pages</li>
		<li><a href="../../archive.html">Archive</a></li>
                <li><a href="../../about.html">About & Links</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav Library</li>
                <li><a href="../../gallery.html">Gallery</a></li>
              </ul>
            </li>
	    <li><a href="../../feed.xml">Subscribe</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
    <div class="container">

	
	<div class="page-header">
		<h1>折腾树莓派</h1>
	</div>

	<p><em>02 September 2020</em></p>

	<p><h4>安装软件</h4>
<p>买的是8GBi版本，安装了pi64的操作系统，但是64位系统国内没有好的镜像网站，更新系统和安装软件的速度特别慢。<br />
安装JDK，Groovy，JBake，httpd等常用软件。</p>
<pre><code class="language-bash">sudo apt install lighttpd
</code></pre>
<h4>打开ssh远程访问</h4>
<h4>打开ufw防火墙，并配置防火墙策略</h4>
<pre><code>$ ufw status
Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       192.168.3.0/24
80                         ALLOW       Anywhere
443                        ALLOW       Anywhere
80 (v6)                    ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)

</code></pre>
<h4>折腾下gitee</h4>
<p>不会用git还是安装了svn，使用EditPlus远程打开树莓派上的文件，写完之后可以在树莓派上生成静态文件并提交到gitee的版本库里面，实际是将gitee当成一个静态博客的托管网站来用，目前没任何问题，只是svn提交之后不能实时生效需要手工更新，其实也是很奈斯了。</p>
</p>

	<hr />
	
		</div>
		<div id="push"></div>
    </div>
    
    <div id="footer">
      <div class="container">
        <p class="muted credit">Copyright 2020 raveh.net All Rights Reserved. <a href="/sitemap.xml">sitemap</a></p>
      </div>
    </div>
    
    <script src="../../js/jquery-1.11.1.min.js"></script>
    <script src="../../js/bootstrap.min.js"></script>
    <script src="../../js/prettify.js"></script>
    <script src="../../js/cursor.js"></script>
  </body>
</html>